-
Notifications
You must be signed in to change notification settings - Fork 16
first commit #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
first commit #7
Conversation
| <groupId>org.webjars</groupId> | ||
| <artifactId>bootstrap</artifactId> | ||
| <version>3.3.7</version> | ||
| </dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trùng lib rồi em ơi
Line 54 có khai báo rồi kìa
| new FileOutputStream(serverFile)); | ||
| stream.write(bytes); | ||
| stream.close(); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Viết cái đoạn up file này vào 1 file util nha em
| new FileOutputStream(serverFile)); | ||
| stream.write(bytes); | ||
| stream.close(); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tương tự comment trên, em cũng hãy đưa đoạn code này vào file util nha
| } | ||
|
|
||
| final String redirectUrl = "redirect:http://localhost/test.php"; | ||
| return redirectUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final String redirectUrl = "redirect:http://localhost/test.php";
Có gì nhầm lẫn chỗ này ko em?
| Files.write(path, bytes); | ||
| itPost.setImage(file.getOriginalFilename()); | ||
| redirect.addFlashAttribute("message", | ||
| "You successfully uploaded '" + file.getOriginalFilename() + "'"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"You successfully uploaded '"
multi language?
| <link href="../../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/> | ||
| </head> | ||
| <body> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check lại toàn bộ indent của jsp em ơi ;(
| $("input.upload-new-pic").change(function () { | ||
| readURL(this); | ||
| }); | ||
| //]]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Không viết javascript trong này nha, tạo file riêng đi em
| '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i', | ||
| '//www.tinymce.com/css/codepen.min.css' | ||
| ] | ||
| });</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Không viết js trong này
|
|
||
| @Service | ||
| public class UserServiceImpl implements UserService { | ||
| @Autowired |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lỗi indent
|
|
||
| @Bean | ||
| public JpaVendorAdapter jpaVendorAdapter() { | ||
| HibernateJpaVendorAdapter jpaVendorAdapter = new HibernateJpaVendorAdapter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Không dùng HibernateJpaVendorAdapter em ơi.
No description provided.